package com.woniu.cloud.api;

import com.woniu.cloud.common.dto.Result;
import com.woniu.cloud.form.StoreRevenueInsertForm;
import com.woniu.cloud.form.StoreRevenueSelectForm;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

/**

 *
 * @author Lucas
 * @since 2021-09-22
 */
@FeignClient(value = "store",contextId = "StoreRevenueApi")
public interface StoreRevenueApi {

    /***
     * 添加流水表
     * @param  storeRevenueInsertForm 添加流水信息
     * @return true false
     */
    @PostMapping("insertStoreRevenue")
    public  Result insertStoreRevenue(@RequestBody StoreRevenueInsertForm storeRevenueInsertForm);
    /***
     * 查看流水表
     * @param  storeRevenueSelectForm 获取流水信息
     * @return
     */
    @PostMapping("getStoreRevenue")
    Result getStoreRevenue(@RequestBody StoreRevenueSelectForm storeRevenueSelectForm
                          );
}
